package com.sunyard.pcc.core.manager;

import com.sunyard.michiru.common.entity.PageResult;
import com.sunyard.pcc.dal.model.SysDeptDO;
import com.sunyard.pcc.dal.query.SysDeptQuery;

import java.util.List;

/**
 * Manager for SysDept.
 */
public interface SysDeptManager {

    /**
     * query count by query condition.
     */
    int countByQuery(SysDeptQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysDeptQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysDeptDO record);

    /**
     * insert selective.
     */
    long insertSelective(SysDeptDO record);

    /**
     * select by query condition.
     */
    List<SysDeptDO> selectByQuery(SysDeptQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SysDeptDO> selectByQueryWithPage(SysDeptQuery query);

    /**
     * select by primary key.
     */
    SysDeptDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SysDeptDO record,  SysDeptQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SysDeptDO record, SysDeptQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysDeptDO record);

}